package com.quick.develop.flowable.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@ApiModel("管理后台 - 流程模型的分页的每一项 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BpmModelPageItemRespVO extends BpmModelBaseVO {

    private static final long serialVersionUID = 2449525934967675661L;
    @ApiModelProperty(value = "编号" )
    private String id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 最新部署的流程定义
     */
    private ProcessDefinition processDefinition;

    @ApiModel("流程定义")
    @Data
    public static class ProcessDefinition {

        @ApiModelProperty(value = "编号",  example = "1024")
        private String id;

        @ApiModelProperty(value = "版本",  example = "1")
        private Integer version;

        @ApiModelProperty(value = "部署ID")
        private String deploymentId;

        @ApiModelProperty(value = "部署时间")
        private Date deploymentTime;

        @ApiModelProperty(value = "中断状态", example = "1", notes = "参见 SuspensionState 枚举")
        private Integer suspensionState;

    }

}
